FROM java:8
ADD fruit-detect-0.0.1.jar /fruit-app.jar
RUN bash -c 'touch /fruit-app.jar'
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo "Asia/Shanghai" > /etc/timezone
EXPOSE 8080
EXPOSE 8081
ENTRYPOINT ["java","-jar","/fruit-app.jar","--spring.profiles.active=prod"]
MAINTAINER leeb
#docker run -p 8080:8080 --name cicd-demo -d app:0.0.1
#http://101.43.149.52:8080/
# docker inspect